package com.itheima.d2_buffered_stream;

import java.io.*;

public class BufferedReaderTest2 {
    public static void main(String[] args) {
        try(
                Reader fr=new FileReader("C:\\Users\\dell\\IdeaProjects\\file-io-app\\io-app2\\src\\itheima04.txt");
                BufferedReader br=new BufferedReader(fr);
                ){
            /*char[] buffer=new char[3];
            int len;
            while((len=br.read(buffer))!=-1){
                System.out.print(new String(buffer,0,len));
        }*/
            String line;
            while((line=br.readLine())!=null){
                System.out.println(line);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
